﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MailServerViewModels>" %>

<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Lib.Paging" %>
<%@ Import Namespace="SDT.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Chi tiết mail server
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="admintable" width="100%">
        <tbody>
            <tr>
                <td class="key">
                    Tên 
                </td>
                <td>
                    <%=Html.Encode(Model.MailServer.Name)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Email
                </td>
                <td>
                    <%=Html.Encode(Model.MailServer.Email)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Password
                </td>
                <td>
                    <%=Html.Encode(Model.MailServer.Password)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Host
                </td>
                <td>
                    <%=Html.Encode(Model.MailServer.Host)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Port
                </td>
                <td>
                    <%=Html.Encode(Model.MailServer.Port)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Trạng thái
                </td>
                <td>
                    <%= Html.RadioButton("MailServer.PubYN", true, Model.MailServer.PubYN)%>
                    Kích hoạt
                    <%= Html.RadioButton("MailServer.PubYN", false, !Model.MailServer.PubYN)%>
                    Không kích hoạt
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" id="btnSave" value="Thêm mới" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
        <%= Html.Toolbar("Sửa", "/mailserver/edit/" + Model.MailServer.ID, "edit")%>
    </td>
    <td>
        <%= Html.Toolbar("Xoá", "/mailserver/edit/" + Model.MailServer.ID, "delete")%>
    </td>
    <td>
        <%= Html.Toolbar("Quay về", "/mailserver", "back")%>
    </td>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Chi tiết mail server
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
